import * as React from "react";
import { Button } from 'antd';
import './notFound.less';

interface IProps {
  children?: AudioContextLatencyCategory;
  history?: any
}

class NotFound extends React.Component<IProps, {}> {
  render() {
    return (
      <div className='not-found'>
        <img src={require("../../assets/404.jpg")} />
        <p>抱歉你访问的页面没有找到，可能被删除或者不存在。</p>
        <Button type="primary" onClick={() => {
          this.props.history.push('/home')
        }}>返回首页</Button>
      </div>);
  }
}

export default NotFound